/*******************************************************************************
 * Copyright (c) 2008 Smart Mai(smardio@gmail.com).
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Public License v2.0
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 * 
 * Contributors:
 *     Smart Mai(smardio@gmail.com) - initial API and implementation
 ******************************************************************************/
package com.smartdio.company;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

import com.smartdio.company.views.CompanyView;
import com.smartdio.company.views.PersonView;

/**
 * @author smart
 *
 */
public class CompanyPerspective implements IPerspectiveFactory {
   static final	public String ID="com.smartdio.company.perspective";

	/* (non-Javadoc)
	 * @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui.IPageLayout)
	 */
	@Override
	public void createInitialLayout(IPageLayout layout) {
	
		String editorArea = layout.getEditorArea();	
		layout.setFixed(true);
        layout.addStandaloneView(CompanyView.ID, true, IPageLayout.LEFT,0.3f, editorArea);
		layout.addStandaloneView(PersonView.ID, true, IPageLayout.BOTTOM,0.5f, editorArea);

	}

}
